package net.wangds.auth.common.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import net.wangds.data.impl.IdCreate;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * 资源行为关联关系.
 */
@NoArgsConstructor
@AllArgsConstructor
@MappedSuperclass
public abstract class AbstractResActionRef extends IdCreate {

    /**
     * 资源id.
     */
    @Getter
    @Setter
    @Column(length=36)
    private String resId;

    /**
     * 被授予行为.
     * @see net.wangds.auth.module.PrivilegeActionEnum
     */
    @Column(length=4)
    @Getter
    @Setter
    private int action;

}
